package com.zc.designmodel.behavioral.command;

/**
 * @author: zhuCan
 * @date: 2020/4/14 14:06
 * @description:
 */
public class Stock {

  private String name="abc";
  private int quantity=10;

  public void buy(){
    System.out.println("Stock [ Name: "+name+", Quantity: " + quantity +" ] bought");
  }

  public void sell(){
    System.out.println("Stock [ Name: "+name+", Quantity: " + quantity +" ] sold");
  }
}
